package com.pm25.response;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

import com.google.gson.reflect.TypeToken;
import com.pm25.response.bean.Pm25;

public class Pm25Response extends AbstractResponse {

	private List<Pm25> pm25;

	public Pm25Response(String responseBody) {
		super(responseBody);
	}

	@Override
	public void parseResult() {
		Type type = new TypeToken<ArrayList<Pm25>>() {
		}.getType();
		pm25 = gson.fromJson(responseBody, type);
	}

	public List<Pm25> getPm25() {
		return pm25;
	}

}
